//
//  NCQuery.m
//  NiceCommands
//
//  Created by James Tuley on 9/20/08.
//  Copyright 2008 __MyCompanyName__. All rights reserved.
//

#import "NCQuery.h"


@implementation NCQuery

@synthesize responseClass;

- (id)initWithCoder:(NSCoder *)coder
{
    responseClass = [[coder decodeObjectForKey:@"NCResponseClass"] retain];
    return self;
}

- (void)encodeWithCoder:(NSCoder *)coder
{
    if ( [coder isKindOfClass:[NSKeyedArchiver class]] ) {
		[coder encodeObject:responseClass forKey:@"NCResponseClass"];
		
    } else {
        [NSException raise:NSInvalidArchiveOperationException
                    format:@"Only supports NSKeyedArchiver coders"];
    }
}

@end
